* {
    padding: 0;
    margin: 0;
}

body {
    background-color: rgb(244, 241, 249);
    background-image: url(./asset/grid.svg);
    background-repeat: repeat;
    background-size: 300px 300px;
    color: #000;
}

.content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .card {
        position: relative;
        .show-wrapper {
            z-index: 10;
            transition: 0.4s;
            .pic-wrapper {
                width: 300px;
                height: 300px;
                transition: 0.4s;
                video {
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                }
            }
            .title {
                margin: 10px 0;
            }
            .show-info {
                display: flex;
                flex-direction: row;
                color: #cccccc;
                justify-content: space-between;
                .show-info-item {
                    svg {
                        width: 30px;
                        height: 30px;
                        vertical-align: middle;
                    }
                }
            }
        }
        .hover-wrapper {
            display: none;
            position: relative;
            flex-direction: column;
            align-items: center;
            opacity: 1;
            transition: 0.5s;
            .hover-info {
                display: flex;
                flex-direction: row;
                justify-content: center;
                height: 100%;
                font-size: 2vw;
                .info-item {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    .info-item-title {
                        font-size: 0.8vw;
                        color: #cccccc;
                    }
                }
                .line {
                    width: 2px;
                    height: 4vh;
                    margin: 0 1vw;
                    background: #cccccc;
                }
            }
            .btn {
                width: 90%;
                height: 40px;
                margin-top: 2vh;
                border-radius: 50px;
                background-color: rgb(67, 119, 216);
                border: 0;
                font-size: 1vw;
                cursor: pointer;
                color: #fff;
            }
        }
        .background {
            background-color: #fff;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 20px;
            z-index: -1;
            transition: 0.5s;
            transform: scale(0.2, 0.9);
            opacity: 0;
            height: 80%;
            box-shadow: 0px 10px 32px 1px rgb(221, 219, 219);
            background-image: linear-gradient(
                    rgba(255, 255, 255, 0.4) 0%,
                    rgba(255, 255, 255, 0.7) 20%,
                    rgba(255, 255, 255, 1) 60%,
                    rgba(255, 255, 255, 1) 100%
                ),
                url(./asset/bg.png);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: top;
        }
        &:hover {
            .show-wrapper {
                transform: translateY(-25%);
                .pic-wrapper {
                    transform: scale(0.8);
                }
                .title {
                    animation: nameAmt 0.5s ease-in-out forwards;
                }
                .show-info {
                    opacity: 0;
                }
            }
            .hover-wrapper {
                animation: hoverWrapperAmt 0.5s ease-in-out forwards;
                display: flex;
                transform: translateY(-100%);
            }
            .background {
                opacity: 1;
                transform: scale(1.1);
            }
        }
    }
}

@keyframes nameAmt {
    0% {
        opacity: 0;
        text-align: center;
    }
    100% {
        opacity: 1;
        text-align: center;
        transform: translateY(-55%);
    }
}

@keyframes hoverWrapperAmt {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
